// 列表字段
export const tableOption = {
  border: true,
  //"index": true,
  //"indexLabel": "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: "center",
  viewBtn: false,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  columnBtn: false,
  addBtn: false,
  dialogEscape: false,
  dialogClickModal: false,
  menuWidth: 160,
  column: [
    {
      type: "input",
      label: "ID",
      editDisplay: false,
      addDisplay: false,
      prop: "id"
    },

    {
      type: "input",
      label: "类型名称",
      search: false,
      prop: "templateType",
      formatter: function(row, value, label, column) {
        switch (value){
          case "212":
            return "仓库租赁";
          default:
            return "房屋租赁";
        }
        return value + "";
      }
    },
    {
      type: "input",
      label: "添加人",
      editDisplay: false,
      addDisplay: false,
      prop: "createByName"
    },
    {
      type: "input",
      label: "模板附件",
      slot: true,
      prop: "templateName"
    },
    {
      type: "input",
      label: "操作时间",
      editDisplay: false,
      addDisplay: false,
      width: "150px",
      prop: "updateDate"
    }
  ]
};
